<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset='utf-8'">
  <META NAME="KEYWORDS" CONTENT="<%= @settings.keywords.to_s %>" >
  <title><%= @settings.title %>:&nbsp;<%= controller.action_name %></title>
  <link rel="alternate" type="application/rss+xml" href="media/rss">
  <%= stylesheet_link_tag "admin.css" %>
  <%= stylesheet_link_tag "calendar_date_select.css" %>
  <%= javascript_include_tag :defaults %>
  <%= javascript_include_tag "calendar_date_select" %>
</head>
<body>
<div id="header">
<p id="maintitle"><%= link_to @settings.title, :controller=>"media",:action=>"index" %></p>
<p id="subtitle"><%= @settings.subtitle %></p>
</div>
<% if session[:user]!=nil %>
<div id='admin'>
<%= render_component(:controller => 'admin/menu',:action =>'show') %>
</div>
<% end %>
<div id='main'>
<p style="color: red"><%= flash[:notice] %></p>
<%= yield %>
</div>
<div id='footer'>
<a onclick="new Effect.ScrollTo('topbar'); return false"><%= theme_image_tag("arrow_up.png",:border =>0) %></a>
<%= link_to image_tag("mandarina.png",:align=>"bottom",:border=>0,:title=>"mandarina blog code"),"http://code.google.com/p/mandarinablog/" %>&nbsp;<a href="/media/rss"><%= theme_image_tag("feed.png",:align=>"bottom",:border=>0) %></a>&nbsp;<a href="http://www.famfamfam.com/lab/icons/silk/"><%= theme_image_tag("images.png",:border =>0,:align=>"bottom",:alt=>"famfamfam silk icons") %></a>
</div>
</body>
</html>
